package mt.dummy;

import java.util.HashMap;
/**
 * 
 * @author Pedro,Rita,Miguel
 *
 * @param <E>  the type of keys maintained by this map
 * @param <T> the type of mapped values
 */
public class HashMaps<E, T> {
/**
 * The HashMap of what we want
 */
        private HashMap<E, T> maps = new HashMap<E, T>();

        /**
         * Removes the mapping for the specified key
         * @param e
         */
        
        public void remove(E e) {
                maps.remove(e);
        }

/**
 *      Returns true if this map contains a mapping for the specified key.
 * @param e
 * @return boolean
 */
        
        public boolean contains(E e) {
                return maps.containsKey(e);
        }
        
/**
 * Removes all of the mappings from this map.
 */
        public void clear() {
                maps.clear();
        }

/**
 * Add a new entry with the specified key and the specified value .     
 * @param e
 * @param t
 */
        public void addEntry(E e,T t){
                maps.put(e,t);
        }

        /**
         * Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.
         * @param e
         * @return T
         */
        
        public T get(E e) {
                
                return maps.get(e);
        }
        

        /**
         * Returns true if this map contains no key-value mappings.
         * @return boolean
         */
        public Boolean isEmpty() {
                return maps.isEmpty();
        }
}
